/* eslint-disable import/no-anonymous-default-export */
import Http from "@/tools/http";
const http = new Http();
export default class UserApi{
  getAllMockApi() {
    return http.get('/api/mock')
  }
  deleteMockApi(apiName: string) {
    return http.delete('/api/mock', { apiName })
  }
  sendAuthCode(code: string) {
    return http.post('/api/auth', { code })
  }
  static login(userName: string, passWord: string) {
    return http.get('/api/', {
      userName,
      passWord
    })
  }
}